<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/9/23
 * Time: 14:12
 */

namespace app\model;


use think\Model;

class OrderSonModel extends BaseModel
{
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;


    /**
     * @param $order_no
     * @return int
     * 删除订单
     */
    public function del_order($parent_order){

        $result = $this->where('parent_order',$parent_order)->delete();

        return $result;
    }

}